def stricmp(s1, s2): # case insensitive comparison
            s1upper = s1.upper()
            s2upper = s2.upper()
            if s1upper == s2upper:
                return True
            else:
                return False

print True == stricmp('color', 'color')
print True == stricmp('color', 'Color')
print True == stricmp('COLOR', 'coLor')
print False == stricmp('colar', 'color')
print False == stricmp('c o l  or', 'color')
print True == stricmp('Color', 'Color')
